package edu.sctu.wulixia.month4and5.day20150525;

/**
 * Created by user05 on 2015/5/25.
 */
public class PrintTest {
    public static void main(String[] args) {
        TestA a1 = new TestA();
        TestA a2 = new TestB();
        TestB  b = new TestB();
        TestC  c = new TestC();
        TestD  d = new TestD();

        System.out.println(a1.show(b));
        System.out.println(a1.show(c));
        System.out.println(a1.show(d));

        System.out.println(a2.show(b));
        System.out.println(a2.show(c));
        System.out.println(a2.show(d));

        System.out.println(b.show(a1));
        System.out.println(b.show(b));
        System.out.println(b.show(c));
        System.out.println(b.show(d));

    }
}
